package com.graduationdesign.zengyan.graduationdesignapp.dataLayer;

import com.graduationdesign.zengyan.graduationdesignapp.utils.Api;
import com.graduationdesign.zengyan.graduationdesignapp.dataLayer.profileRepository.MainLocalService;
import com.graduationdesign.zengyan.graduationdesignapp.dataLayer.profileRepository.MainRepository;
import com.graduationdesign.zengyan.graduationdesignapp.dataLayer.profileRepository.MainService;

/**
 * Created by ZengYan on 2018/4/15.
 *
 * @desc :
 */
public class DataInjection {

    public static MainRepository provideProfileRepository() {
        return  MainRepository.getInstance(
                Api.getRetrofit().create(MainService.class),
                new MainLocalService()
        );
    }
}
